package com.vencent.spring.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

import com.vencent.spring.web.ToysController;

@Configuration
public class ToysConfig {
	@Bean
	@Profile("dev")
	public ToysController toysD(){
		return new ToysController("duck");
	}
	
	@Bean
	@Profile("test")
	public ToysController toysT(){
		return new ToysController("chicken");
	}
}
